import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    // src文件夹配置别名 @
    alias: {
      '@': resolve(__dirname, 'src'),
      '@views': resolve(__dirname, 'src/views'),
      '@comps': resolve(__dirname, 'src/components'),
    }
  },
  server: {
    //配置api请求代理服务器
    proxy: {
      '/api': 'http://39.98.123.211/'
    }
  }
})
